import { req } from '../utils/req.js';

export default {
  //是否存在用户信息
  haveUserInfo() {
    return req.get("api/home/user/holdInfo")
  },
  //获取个人信息
  getUserInfo(param) {
    return req.post("api/home/user/userInfo",param)
  },
  //获取个人信息
  saveUserInfo(param) {
    return req.post("api/home/user/userEdit",param)
  },
  //领取幸运星
  getLuckyStar() {
    return req.get("api/home/user/receive")
  },
  //会员大餐列表
  vipPriceList() {
    return req.get("api/home/user/setMeal")
  },
  //充值套餐列表
  rechargePriceList() {
    return req.get("api/home/user/recharge")
  },
  //充值成为VIP
  prePayVip(param) {
    return req.post("api/home/pay/prePayVip",param)
  },
  //购买星星数量
  prePayVipStar(param) {
    return req.post("api/home/pay/prePayVipStar",param)
  },
  //购取分享信息
  getShareInfo(param) {
    return req.post("api/home/user/share",param)
  },
}